package IO;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-10-03
 * Time:16:44
 */
public class Demo2 {
    public static void main(String[] args) throws IOException {
        InputStream stream=new FileInputStream("./src/file/test1.txt");
        byte[] ret= new byte[20];
        stream.read(ret);
        System.out.println(Arrays.toString( ret));
        stream.close();
    }
}
